import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      redirect: '/Login'
    },
    {
      path:'/Login',
      name:'用户登录',
      component:resolve => require(['@/components/common/Login'],resolve)
    },
    {
      path: '/HelloWorld',
      component: resolve => require(['@/components/HelloWorld'], resolve)               //  默认首页
    },

    {
      path: '/addInfo',
      component: resolve => require(['@/views/demoPage/addInfo'], resolve)               //  默认首页
    },
  ]
})
